package cn.bonoon.core.plugins;

import java.util.Date;

import cn.bonoon.entities.plugins.HolidayEntity;
import cn.bonoon.kernel.support.services.GenericService;

public interface HolidayService extends GenericService<HolidayEntity> {

	HolidayEntity getYear(int year);

	String getMonth(int year, int month);

	Object get2Month(int year, int month_1, int month_2);

	/**
	 *  查询指定天数工作日前的日期
	 * @param date
	 * @param workDays 工作日
	 * @return 计算后的日期
	 */
	Date getBefore(Date date, int workDays);

}
